// JavaScript Document
function calc(o){
	let inputA=document.getElementById("q")
	let inputB=document.getElementById("e")
	let inputC=document.getElementById("c")
	let valA=parseFloat(inputA.value)
	let valB=parseFloat(inputB.value)
	let res=0
	if(o==1){
		res=valA+valB
	}else if(o==2){
		res =valA-valB
	}else if(o==3){
		res =valA*valB
	}else if(o==4){
		res =valA/valB
	}
	inputC.value=res
}
calc();